package com.mo.springboot.repository;

import com.mo.springboot.entity.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface TeacherRepository extends JpaRepository<Teacher, Long> {
    Teacher findById(int id);
    Teacher findByName(String name);
}
